<template>
<div>
    <el-button type="primary" @click="delploy">部署sps_datav</el-button>
</div>
</template>

<script setup lang="ts">


// Create WebSocket connection.
const socket = new WebSocket("ws://localhost:8000/ws");

// Connection opened
socket.addEventListener("open", function (event) {
  socket.send("Hello Server!");
});

// Listen for messages
socket.addEventListener("message", function (event) {
  console.log("Message from server ", event.data);
});


function delploy() {
    console.log("start deploy")
    socket.send("start deploy")
}

</script>